Optimal. Leaf size=183 \[ \frac {11 d x}{96 a^3 f}-\frac {d x^2}{16 a^3}+\frac {x (c+d x)}{8 a^3}-\frac {d}{36 f^2 (a+a \coth (e+f x))^3}-\frac {c+d x}{6 f (a+a \coth (e+f x))^3}-\frac {5 d}{96 a f^2 (a+a \coth (e+f x))^2}-\frac {c+d x}{8 a f (a+a \coth (e+f x))^2}-\frac {11 d}{96 f^2 \left (a^3+a^3 \coth (e+f x)\right )}-\frac {c+d x}{8 f \left (a^3+a^3 \coth (e+f x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 183, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3560, 8, 3811}
\begin {gather*} -\frac {c+d x}{8 f \left (a^3 \coth (e+f x)+a^3\right )}+\frac {x (c+d x)}{8 a^3}-\frac {11 d}{96 f^2 \left (a^3 \coth (e+f x)+a^3\right )}+\frac {11 d x}{96 a^3 f}-\frac {d x^2}{16 a^3}-\frac {c+d x}{8 a f (a \coth (e+f x)+a)^2}-\frac {c+d x}{6 f (a \coth (e+f x)+a)^3}-\frac {5 d}{96 a f^2 (a \coth (e+f x)+a)^2}-\frac {d}{36 f^2 (a \coth (e+f x)+a)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3560
Rule 3811
Rubi steps
\begin {align*} \int \frac {c+d x}{(a+a \coth (e+f x))^3} \, dx &=\frac {x (c+d x)}{8 a^3}-\frac {c+d x}{6 f (a+a \coth (e+f x))^3}-\frac {c+d x}{8 a f (a+a \coth (e+f x))^2}-\frac {c+d x}{8 f \left (a^3+a^3 \coth (e+f x)\right )}-d \int \left (\frac {x}{8 a^3}-\frac {1}{6 f (a+a \coth (e+f x))^3}-\frac {1}{8 a f (a+a \coth (e+f x))^2}-\frac {1}{8 f \left (a^3+a^3 \coth (e+f x)\right )}\right ) \, dx\\ &=-\frac {d x^2}{16 a^3}+\frac {x (c+d x)}{8 a^3}-\frac {c+d x}{6 f (a+a \coth (e+f x))^3}-\frac {c+d x}{8 a f (a+a \coth (e+f x))^2}-\frac {c+d x}{8 f \left (a^3+a^3 \coth (e+f x)\right )}+\frac {d \int \frac {1}{a^3+a^3 \coth (e+f x)} \, dx}{8 f}+\frac {d \int \frac {1}{(a+a \coth (e+f x))^3} \, dx}{6 f}+\frac {d \int \frac {1}{(a+a \coth (e+f x))^2} \, dx}{8 a f}\\ &=-\frac {d x^2}{16 a^3}+\frac {x (c+d x)}{8 a^3}-\frac {d}{36 f^2 (a+a \coth (e+f x))^3}-\frac {c+d x}{6 f (a+a \coth (e+f x))^3}-\frac {d}{32 a f^2 (a+a \coth (e+f x))^2}-\frac {c+d x}{8 a f (a+a \coth (e+f x))^2}-\frac {d}{16 f^2 \left (a^3+a^3 \coth (e+f x)\right )}-\frac {c+d x}{8 f \left (a^3+a^3 \coth (e+f x)\right )}+\frac {d \int 1 \, dx}{16 a^3 f}+\frac {d \int \frac {1}{a+a \coth (e+f x)} \, dx}{16 a^2 f}+\frac {d \int \frac {1}{(a+a \coth (e+f x))^2} \, dx}{12 a f}\\ &=\frac {d x}{16 a^3 f}-\frac {d x^2}{16 a^3}+\frac {x (c+d x)}{8 a^3}-\frac {d}{36 f^2 (a+a \coth (e+f x))^3}-\frac {c+d x}{6 f (a+a \coth (e+f x))^3}-\frac {5 d}{96 a f^2 (a+a \coth (e+f x))^2}-\frac {c+d x}{8 a f (a+a \coth (e+f x))^2}-\frac {3 d}{32 f^2 \left (a^3+a^3 \coth (e+f x)\right )}-\frac {c+d x}{8 f \left (a^3+a^3 \coth (e+f x)\right )}+\frac {d \int 1 \, dx}{32 a^3 f}+\frac {d \int \frac {1}{a+a \coth (e+f x)} \, dx}{24 a^2 f}\\ &=\frac {3 d x}{32 a^3 f}-\frac {d x^2}{16 a^3}+\frac {x (c+d x)}{8 a^3}-\frac {d}{36 f^2 (a+a \coth (e+f x))^3}-\frac {c+d x}{6 f (a+a \coth (e+f x))^3}-\frac {5 d}{96 a f^2 (a+a \coth (e+f x))^2}-\frac {c+d x}{8 a f (a+a \coth (e+f x))^2}-\frac {11 d}{96 f^2 \left (a^3+a^3 \coth (e+f x)\right )}-\frac {c+d x}{8 f \left (a^3+a^3 \coth (e+f x)\right )}+\frac {d \int 1 \, dx}{48 a^3 f}\\ &=\frac {11 d x}{96 a^3 f}-\frac {d x^2}{16 a^3}+\frac {x (c+d x)}{8 a^3}-\frac {d}{36 f^2 (a+a \coth (e+f x))^3}-\frac {c+d x}{6 f (a+a \coth (e+f x))^3}-\frac {5 d}{96 a f^2 (a+a \coth (e+f x))^2}-\frac {c+d x}{8 a f (a+a \coth (e+f x))^2}-\frac {11 d}{96 f^2 \left (a^3+a^3 \coth (e+f x)\right )}-\frac {c+d x}{8 f \left (a^3+a^3 \coth (e+f x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.46, size = 185, normalized size = 1.01 \begin {gather*} \frac {\text {csch}^3(e+f x) \left (27 (4 c f+d (3+4 f x)) \cosh (e+f x)+4 \left (6 c f (1+6 f x)+d \left (1+6 f x+18 f^2 x^2\right )\right ) \cosh (3 (e+f x))+135 d \sinh (e+f x)+324 c f \sinh (e+f x)+324 d f x \sinh (e+f x)-4 d \sinh (3 (e+f x))-24 c f \sinh (3 (e+f x))-24 d f x \sinh (3 (e+f x))+144 c f^2 x \sinh (3 (e+f x))+72 d f^2 x^2 \sinh (3 (e+f x))\right )}{1152 a^3 f^2 (1+\coth (e+f x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 3.55, size = 102, normalized size = 0.56
method | result | size |
risch | \(\frac {d \,x^{2}}{16 a^{3}}+\frac {c x}{8 a^{3}}+\frac {3 \left (2 d x f +2 c f +d \right ) {\mathrm e}^{-2 f x -2 e}}{32 a^{3} f^{2}}-\frac {3 \left (4 d x f +4 c f +d \right ) {\mathrm e}^{-4 f x -4 e}}{128 a^{3} f^{2}}+\frac {\left (6 d x f +6 c f +d \right ) {\mathrm e}^{-6 f x -6 e}}{288 a^{3} f^{2}}\) | \(102\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.68, size = 148, normalized size = 0.81 \begin {gather*} \frac {1}{96} \, c {\left (\frac {12 \, {\left (f x + e\right )}}{a^{3} f} + \frac {18 \, e^{\left (-2 \, f x - 2 \, e\right )} - 9 \, e^{\left (-4 \, f x - 4 \, e\right )} + 2 \, e^{\left (-6 \, f x - 6 \, e\right )}}{a^{3} f}\right )} + \frac {{\left (72 \, f^{2} x^{2} e^{\left (6 \, e\right )} + 108 \, {\left (2 \, f x e^{\left (4 \, e\right )} + e^{\left (4 \, e\right )}\right )} e^{\left (-2 \, f x\right )} - 27 \, {\left (4 \, f x e^{\left (2 \, e\right )} + e^{\left (2 \, e\right )}\right )} e^{\left (-4 \, f x\right )} + 4 \, {\left (6 \, f x + 1\right )} e^{\left (-6 \, f x\right )}\right )} d e^{\left (-6 \, e\right )}}{1152 \, a^{3} f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 325, normalized size = 1.78 \begin {gather*} \frac {4 \, {\left (18 \, d f^{2} x^{2} + 6 \, c f + 6 \, {\left (6 \, c f^{2} + d f\right )} x + d\right )} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )^{3} + 12 \, {\left (18 \, d f^{2} x^{2} + 6 \, c f + 6 \, {\left (6 \, c f^{2} + d f\right )} x + d\right )} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )^{2} + 4 \, {\left (18 \, d f^{2} x^{2} - 6 \, c f + 6 \, {\left (6 \, c f^{2} - d f\right )} x - d\right )} \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )^{3} + 27 \, {\left (4 \, d f x + 4 \, c f + 3 \, d\right )} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + 3 \, {\left (108 \, d f x + 4 \, {\left (18 \, d f^{2} x^{2} - 6 \, c f + 6 \, {\left (6 \, c f^{2} - d f\right )} x - d\right )} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )^{2} + 108 \, c f + 45 \, d\right )} \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )}{1152 \, {\left (a^{3} f^{2} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )^{3} + 3 \, a^{3} f^{2} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )^{2} \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + 3 \, a^{3} f^{2} \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )^{2} + a^{3} f^{2} \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 1287 vs.
\(2 (170) = 340\).
time = 1.26, size = 1287, normalized size = 7.03 \begin {gather*} \begin {cases} \frac {36 c f^{2} x \tanh ^{3}{\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {108 c f^{2} x \tanh ^{2}{\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {108 c f^{2} x \tanh {\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {36 c f^{2} x}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {252 c f \tanh ^{2}{\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {324 c f \tanh {\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {120 c f}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {18 d f^{2} x^{2} \tanh ^{3}{\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {54 d f^{2} x^{2} \tanh ^{2}{\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {54 d f^{2} x^{2} \tanh {\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {18 d f^{2} x^{2}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} - \frac {87 d f x \tanh ^{3}{\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} - \frac {9 d f x \tanh ^{2}{\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {63 d f x \tanh {\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {33 d f x}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {87 d \tanh ^{2}{\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {135 d \tanh {\left (e + f x \right )}}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} + \frac {56 d}{288 a^{3} f^{2} \tanh ^{3}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh ^{2}{\left (e + f x \right )} + 864 a^{3} f^{2} \tanh {\left (e + f x \right )} + 288 a^{3} f^{2}} & \text {for}\: f \neq 0 \\\frac {c x + \frac {d x^{2}}{2}}{\left (a \coth {\left (e \right )} + a\right )^{3}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 142, normalized size = 0.78 \begin {gather*} \frac {{\left (72 \, d f^{2} x^{2} e^{\left (6 \, f x + 6 \, e\right )} + 144 \, c f^{2} x e^{\left (6 \, f x + 6 \, e\right )} + 216 \, d f x e^{\left (4 \, f x + 4 \, e\right )} - 108 \, d f x e^{\left (2 \, f x + 2 \, e\right )} + 24 \, d f x + 216 \, c f e^{\left (4 \, f x + 4 \, e\right )} - 108 \, c f e^{\left (2 \, f x + 2 \, e\right )} + 24 \, c f + 108 \, d e^{\left (4 \, f x + 4 \, e\right )} - 27 \, d e^{\left (2 \, f x + 2 \, e\right )} + 4 \, d\right )} e^{\left (-6 \, f x - 6 \, e\right )}}{1152 \, a^{3} f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.26, size = 127, normalized size = 0.69 \begin {gather*} {\mathrm {e}}^{-6\,e-6\,f\,x}\,\left (\frac {d+6\,c\,f}{288\,a^3\,f^2}+\frac {d\,x}{48\,a^3\,f}\right )+{\mathrm {e}}^{-2\,e-2\,f\,x}\,\left (\frac {3\,d+6\,c\,f}{32\,a^3\,f^2}+\frac {3\,d\,x}{16\,a^3\,f}\right )-{\mathrm {e}}^{-4\,e-4\,f\,x}\,\left (\frac {3\,d+12\,c\,f}{128\,a^3\,f^2}+\frac {3\,d\,x}{32\,a^3\,f}\right )+\frac {d\,x^2}{16\,a^3}+\frac {c\,x}{8\,a^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________